#coding:utf-8

stoves =[[6,6,3],
		 [9,9,3],
		 [12,12,4],
		 [13,13,4],
		 [15,15,4],
		]

numOfStoves = input("该打包流程要用几个热压罐：")
listOfStoves = []
print "热压罐型号分别是："
print "输入完一个类型请按回车ENTER键："
for a in range(1,numOfStoves+1):
	b = input()
	listOfStoves.append(b)
print listOfStoves

matrixOfStoves = []
for c in listOfStoves:
			# parameterOfStoves = []
			for d in stoves:
				if c == d[0]:
					# d.remove(c)
					# parameterOfStoves.append(d[1])
					# parameterOfStoves.append(d[2])
					matrixOfStoves.append(d)

# matrixOfStoves.append(parameterOfStoves)
a= 0
for i in matrixOfStoves:
	if a <= 100:
		matrixOfStoves.append(i)
		a +=1

print matrixOfStoves

for e in matrixOfStoves:
	print e[1],e[2]
# d = len(listOfStoves)
# print d
# for c in listOfStoves:
# 	print c